package StudyCode.summary.zipfile;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class SkipNBytesWhileReadingTheFileUsingFileInputStream {
	public static void main(String[] args) {
		File file = new File("E:/Copy/2.txt");
		try {
			FileInputStream fin = new FileInputStream(file);
			int ch;
			fin.skip(2);
			while ((ch = fin.read()) != -1)
				System.out.print((char) ch);
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}
}
